package com.yhsimon.repository;

import com.yhsimon.entity.Order;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;

import java.util.List;

public interface OrderRepository {
    public List<Order> findAllByUId(int uId, int index, int limit);

    void save(Order order);

    int count();

    int countByState(int state);

    List<Order> findAllByState(int index, int limit);

    void updateState(int id, int state, int aid);

    List<Order> findAll(int index, int limit);

    void deleteById(int id);

    int countById(int uid);
}
